<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="apple-itunes-app" content="app-id=591578609">
<meta name="viewport" content="width=device-width"/>
<meta name="description" content="筑学堂网校" />
<meta name="keywords" content="筑学堂网校、建筑、考试"/>
<link href="images/favicon.ico" type="image/x-icon" rel="shortcut icon" /> 
<link rel="stylesheet" type="text/css" href="${csspath}style/share/style.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/h_index.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/home_style.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/alxx.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/kczx.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/zyzx.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/zyzx_more.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/share/tab.css">
<link rel="stylesheet" type="text/css" href="${csspath}style/simplePagination.css">

<!--[if IE 7]>
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->

<script type="text/javascript" src="${jspath}js/share/m.js"></script>
<script type="text/javascript"src="${jspath}js/jquery-1.7.0.min.js"></script>
<script type="text/javascript"src="${jspath}js/jquery.slideBox.min.js"></script>
<script type="text/javascript" src="${jspath}js/share/tabs.js"></script>

<script type="text/javascript" src="${jspath}/js/jquery.simplePagination.js"></script>
<script type="text/javascript" src="${jspath}/js/pageview.js"></script>
<title>筑学堂家园</title>
<style type="text/css">
a {
	color:#111;
	text-decoration:none;
}
.tabtype
{
color:black;
background-color:#F7F7F7;
}
 
</style>
</head>
<body style="align:center; padding:0;margin:0;clear:both;">
<%@ include file="share_head.jsp" %>
<div class="zyzx_more_div">
	<div class="zyzx_more_divt01"> <a href="#"><span class="alxx_text03">筑学堂网校资源中心</span> </a> </div>
	<div class="zyzx_more_divt">
		<div class="zyzx_more_left">
			<div class="kczx_son_divbodytbl">
				<ul class="tabs">
					<a href="/share/resource/more/upload" rel="external"   >
					<li  id="aupload" class="tabtype">最新上传</li>
					</a> <a href="/share/resource/more/hot" rel="external"   >
					<li id="ahot" class="tabtype">热门文件</li>
					</a> <a href="/share/resource/more/download" rel="external">
					<li id="adownload" class="tabtype">下载排行</li>
					</a>
				</ul> 
				
				<div id="tab1" class="zyzx_more_tab1">
				<c:forEach var="myresource" items="${pageData.data}" varStatus="status">
				<div class="zyzx_more_zt01">
						<table class="zyzx_more_tab01" >
							<tr>
								<td height="15px"> </td>
							</tr>
							<tr>
								<td height="25px" style="font-size:14px;font-weight:bold;"> 
								<a href="/share/resource/d/${myresource.share_file_id}"> <img src="${imgpath}images/share/zyzx_images/${fn:toLowerCase(myresource.file_type)}.png"> ${myresource.topic} </a> 
								</td>
							</tr>
							<tr>
								<td height="25px" style="color:#888;"> 大小：<fmt:formatNumber type="number" value="${myresource.file_size/1024.0/1024.0}" pattern="#.##" />M </td>
							</tr>
							<tr>
								<td height="25px"> 
								<a href="#"> ${myresource.username}</a>&nbsp;&nbsp; 
								发布于 :<fmt:formatDate value="${myresource.create_time}" pattern="yyyy-MM-dd,HH:mm"/>&nbsp;&nbsp; 
								<img src="${imgpath}images/share/zyzx_images/xing.png"/> &nbsp;&nbsp;&nbsp;&nbsp; 
								<a href="#"> <img src="${imgpath}images/share/zyzx_images/ping.png"/> 评论${myresource.comment_cnt}</a> &nbsp;&nbsp;&nbsp;&nbsp; 
								<a href="#"> <img src="${imgpath}images/share/zyzx_images/liu.png"/> 浏览${myresource.view_cnt}  </a> &nbsp;&nbsp;&nbsp;&nbsp;
								 <a href="#"> <img src="${imgpath}images/share/zyzx_images/xia.png"/>下载${myresource.down_cnt}  </a> 
								 </td>
							</tr>
						</table>
					</div>
				</c:forEach>
				
						<!--  执行分页 ，构造分页 -->
		<script language="javascript">
		  // 初始化点击分页按钮的方法	  
	 	  onPageClickFunction =  function(pageNumber, event){	 				 
		 		var pdata = {};
		 		pdata.type = '';		 	
		    	if(pageNumber){
		    		pdata.pageNo = pageNumber;
		    	}
		    	window.location.href="/share/resource/more/${resourcetype}?pageNo="+pageNumber;
		    	/*AjaxTool("GET","/student/case/init?menu=case",pdata,"html",
			    	function (data){		    	
				    	 //返回内容 
				    	if(data){		    		 
				    		$("#contentDiv").html(data);		    		
				    	};
				    } 
		    	);  */
	      };
	</script>
 
		<!--  我是分页 -->
		 <%@ include file="../paging.jsp"%> 
				</div> 
			</div>
		</div>
		<div class="zyzx_more_right">
			<div class="zyzx_more_divlt">
				<table width="220px" height="180px">
					<tr width="220px">
						<td height="30px" class="retext02" style="color:#578429;font-weight:bold;" >热门标签 </td>
					</tr>
					<tr width="220px">
						<td height="90px" valign="top"  class="zyzx_text01" style="line-height:20px;">
					 <c:forEach items="${hottags}" var="hottag">
							<a href="/share/resource/tag/${hottag.id} ">${hottag.name} </a>&nbsp;&nbsp;
							</c:forEach>
						   </td>
					</tr>
					<tr width="240px" align="right">
						<td height="10px"> <a href="#">查看标签地图</a> </td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
<%@ include file="share_buttom.jsp" %>
</body>
<script type="text/javascript">
$(function(){ 	 
	var type = "${resourcetype}" ; 	 
	$("#a"+type).css("color","white"); 
	$("#a"+type).css("background-color","#159E6B");  
});
</script>
</html>